import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import MintUI from 'mint-ui'
import RouterMap from './RouterMap'
import 'mint-ui/lib/style.css'

/* eslint-disable no-new */
Vue.use(VueRouter)
Vue.use(MintUI)

// 生成vue-router实例
var router = new VueRouter({
	linkActiveClass: 'active'
})

router.map(RouterMap)
// 启动路由
router.start(App, 'app')

router.beforeEach(function (transition) {
	transition.next()
})
